from xml.dom.minidom import *
from album_sender import * 
from sendable import * 

class InterpreterSender(Sendable):
	def __init__(self, inter):
		self.interpreter = inter
	def send(self):
		doc = xml.dom.minidom.Document()
		node = doc.createElement("interpreter")
		node.setAttribute("name", self.interpreter.name)
		for i in self.interpreter.albums:
			tmp = AlbumSender(i)
			node.appendChild(tmp.send())
		return node

